package design_mode.singleton;

/**
 * Created mangcao with 2019/5/31 11:03
 * Description: 饿汉 ,线程安全
 */
public class HungrySingleton {

    private static final HungrySingleton lazySingleton = new HungrySingleton();

    private HungrySingleton(){}

    public static HungrySingleton getInstance() {
        return lazySingleton;
    }
}
